package com.lineage.data.item_etcitem;

import com.lineage.data.executor.ItemExecutor;
import com.lineage.server.model.Instance.L1ItemInstance;
import com.lineage.server.model.Instance.L1PcInstance;
import com.lineage.server.serverpackets.S_ShowPolyList;
import com.lineage.server.serverpackets.ServerBasePacket;

public class Sosc_polyother10 extends ItemExecutor {
  public static ItemExecutor get() {
    return new Sosc_polyother10();
  }
  
  public void execute(int[] data, L1PcInstance pc, L1ItemInstance item) {
    pc.sendPackets((ServerBasePacket)new S_ShowPolyList(pc.getId(), "venike_poly10"));
    if (!pc.isItemPoly()) {
      pc.setSummonMonster(false);
      pc.setItemPoly(true);
      pc.setPolyScroll(item);
    } 
  }
}
